hip.api.net.controller

Undocumented in source.

Constructors

this
this(INetwork network)
Undocumented in source.

Public Imports

hip.api.net.hipnet
public import hip.api.net.hipnet;
Undocumented in source.

Members

Classes

NetController
class NetController(alias NetData)

Example usage

Functions

connect
NetConnectStatus connect(NetIPAddress ip, uint id)

Use targetConnectionID if you wish to change the ID after connection.

getConnectedClients
void getConnectedClients()
Undocumented in source. Be warned that the author may not have intended to support it.
getConnectionSelfID
uint getConnectionSelfID()
Undocumented in source. Be warned that the author may not have intended to support it.
getNetworkArray
T getNetworkArray(ubyte[] data)
Undocumented in source. Be warned that the author may not have intended to support it.
getNetworkStruct
T getNetworkStruct(ubyte[] data)
Undocumented in source. Be warned that the author may not have intended to support it.
interpretNetworkData
T interpretNetworkData(NetHeader header, ubyte[] data)
Undocumented in source. Be warned that the author may not have intended to support it.
isHost
bool isHost()
Undocumented in source. Be warned that the author may not have intended to support it.
poll
NetControllerResult poll()

Polls the result from the socket/network data.

registerHandler
void registerHandler(void delegate(t) handler)
Undocumented in source. Be warned that the author may not have intended to support it.
sendData
void sendData(t data)

Send the data. It can only send data via this NetController if it is part of one of the registered types from the MarkNetData

targetConnectionID
void targetConnectionID(uint id)
Undocumented in source. Be warned that the author may not have intended to support it.
targetConnectionID
uint targetConnectionID()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta